<!--#include virtual="/app/common/jsLoader.asp" -->
<%
    require('/app/edk/edk.js');
    require('/app/edk/sql.js');
    require('/app/edk/xml.js');
    require('/app/common/common.js');
    require('/deepcms/classic/public/server.js');
%>
<html>
	<head>
		<%=$$.cfg.headTags()%>
		<link rel="stylesheet" href="/deepcms/classic/public/style.css" type="text/css"/>
	</head>
	<body>
		<h1>新闻管理</h1>
		<div class="">
        <%
         	var sql = $$.newInstance($$.sql);
         	with(sql.list("SELECT news.ID, news.title, news.ReadHits, news.ClassID, news.createDate,  newsclass.title as classTitle FROM news INNER JOIN newsclass ON news.classid = newsclass.id", $$.cfg.Tags('//CRUD_Table//div'), true)){
				Response.write(html + paged); 
				connObj.close();  
         	}
        %>
		</div>		
    	<form id="searchForm" method="GET" action="?">
    		搜索：
    		<input type="text" name="search_Keyword" id="search_Keyword" class="edk-input-2" /> 
    		<input type="submit" value="    查询记录   " />
    	</form>
		<script>
			Ext.get('searchForm').on('submit', function(e){
				if(Ext.fly('search_Keyword').getValue() == ''){
					alert('请输入搜索内容');					
					e.stopEvent();
					return false;
				}
			});
		</script>
	</body>
</html>
